import request from '@/utils/request'

export const getNodelist = (params) => request({
  url: '/vm-service/node/search',
  params
})
// 新增
export const addNodelist = (data) => request({
  url: '/vm-service/node',
  method: 'POST',
  data
})
// 商圈列表
export const addBusinessType = () => request({
  url: 'vm-service/businessType'
})
// 区域列表
export const addSearch = (params) => request({
  url: 'vm-service/region/search',
  params
})
// 合作商列表
export const addPartner = (params) => request({
  url: 'user-service/partner/search',
  params
})
// 详情
export const updateNodeList = (id) => request({
  url: `/vm-service/node/vmList/${id}`
})
// 删除
export const deleteNodeList = (id) => request({
  url: `vm-service/node/${id}`,
  method: 'DELETE'
})
// 修改
export const editNodeList = (id) => request({
  url: `vm-service/node/${id}`,
  method: 'put'
})
